package com.azier.kapacitor.script.method;

import com.azier.kapacitor.script.arg.OriginalArg;

import java.util.ArrayList;

/**
* 1 * @Author: luoj
* 2 * @Date: 2019/11/8 11:27
* 3
*/
public class History extends AbstractMethod {
    private static final String name = "history";
    /**
    Number of previous states to remember when computing flapping levels and checking for state changes. Minimum value is 2 in order to keep track of current and previous states.
    **/
    /**
    计算拍动级别并检查状态变化时要记住的先前状态数。最小值是2，以便跟踪当前和以前的状态。
    **/
    public History(long alert) {
        super(new ArrayList<>(), name);
        //
        this.args.add(new OriginalArg(alert));


    }
}
